
import 'package:example/page/base/state.dart';
import 'package:example/page/page_detail/page.dart';
import 'package:example/page/page_home/page.dart';
import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart';

var rootHandler = Handler(
    handlerFunc: (BuildContext? context, Map<String, List<String>> params) {
      return HomePage().buildPage({"state": PageState()});
    });

var detailRouteHandler = Handler(
    handlerFunc: (BuildContext? context, Map<String, List<String>> params) {
      return DetailPage().buildPage({"state": PageState()});
    });


